package com.learn.mvc.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class Demo02MappingHandler {
    Logger logger = LoggerFactory.getLogger(this.getClass());
    @RequestMapping("/login")
    public String login() {
        logger.debug("user login");
        return "target";
    }

    @RequestMapping("/register")
    public String register() {
        logger.debug("user register");
        return "target";
    }

    @RequestMapping("/logout")
    public String logout() {
        logger.debug("user logout");
        return "target";
    }
}
